<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <table width="400">      
   
    	<s:set value="#request.xs" name="xs"/>
    	<tr><td>学号：</td><td><s:property value="#xs.xh"/></td></tr>
    	<tr><td>姓名：</td><td><s:property value="#xs.xm"/></td></tr>
    	   	
    	<tr>
    		<td>性别：</td>
    	<td>
    		<s:if test="#xs.xb==1">男</s:if>
    		<s:else>女</s:else>
    	</td></tr>
    	<tr><td>出生时间：</td><td><s:date name="#xs.cssj"  format="yyyy-MM-dd"/></td></tr>
    	<tr><td>专业：</td><td><s:property value="#xs.zyb.zym"/></td></tr>
    	<tr><td>总学分：</td><td><s:property value="#xs.zxf"/></td></tr>
    	<tr><td>备注：</td><td><s:property value="#xs.bz"/></td></tr>
    	</table>
  </body>
</html>
